package com.example.myapplication;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class Activity_Detail extends AppCompatActivity {
    ImageView imageView;
    TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detail);
        imageView = findViewById(R.id.imageView);
        textView = findViewById(R.id.textView4);
        String name_str = getIntent().getStringExtra("name");
        int picture_int = getIntent().getIntExtra("picture",0);
        imageView.setImageResource(picture_int);
        textView.setText(name_str);
    }

}
